package com.pro.mybatis;

public class Order {

	private String name;
	private boolean flag;


	public Order(String name,boolean flag){
		this.name = name;
		this.flag = flag;
	}
	
	@Override
	public String toString(){
		return "order by " + name +(flag? " desc ":" asc ");
	}

}